// 引入封装的axios
import request from '@/utils/request'

export default {
    // 发送搜索歌曲
    search(keywords, limit, offset,type) {
        let params = {
            keywords
        }
        if (limit) {
            params.limit = limit
        }
        if (offset) {
            params.offset = offset
        }
        if (type){
            params.type = type
        }
        return request.get(`/cloudsearch`, {params})
    }
}
